<?php /* Smarty version 2.6.11, created on 2011-06-22 14:34:29
         compiled from friendlink_list.php */ ?>
<table width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style" id="sortable">
    <tr align="center">
      <td>ID</td>
      <td>排序</td>
      <td>网址</td>
      <td>网站名称</td>
      <td>网站Logo</td>
      <td>站长Email</td>
      <td>操作</td>
    </tr>
    <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['val']):
?>
    <tr align="center" class="f">
      <td><label><?php echo $this->_tpl_vars['val']['id']; ?>
<input name="id" type="checkbox" value="<?php echo $this->_tpl_vars['val']['id']; ?>
" /></label></td>
      <td class="sort"><?php echo $this->_tpl_vars['val']['sort']; ?>
</td>
      <td><?php echo $this->_tpl_vars['val']['url']; ?>
</td>
      <td><?php echo $this->_tpl_vars['val']['name']; ?>
</td>
      <td><?php echo $this->_tpl_vars['val']['logo']; ?>
</td>
      <td><?php echo $this->_tpl_vars['val']['email']; ?>
</td>
      <td><a href="index.php?m=friendlink&a=edit&id=<?php echo $this->_tpl_vars['val']['id']; ?>
">编辑</a>/<a href="index.php?m=friendlink&a=delete&id=<?php echo $this->_tpl_vars['val']['id']; ?>
&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
">删除</a></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    <tr bgcolor="#FFFFFF">
      <td colspan="7" align="left">
      <span>全选/反选<input name="" id="checkAll" type="checkbox" onClick="checkAll(this);" /></span>
      <span>
      	<input name="" type="button" class="delete" value="删除" onclick="window.location.href='index.php?m=friendlink&a=delete&id='+getCheckBox()+'&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
'" />
      </span>
      <span>
      	<a href="index.php?m=friendlink&a=add&wid=<?php echo $this->_tpl_vars['arg']['wid']; ?>
">新增</a>
      </span>
      <span>
      	<a href="javascript:window.location.href='index.php?m=friendlink&a=sort&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
&id='+sortId;">保存排序结果</a>(拖动排序)
      </span>
      </td>
  </tr>
  </table>